package com.ruoyi.project.configureSystem.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 站点信息对象 c_station
 *
 * @author wangshuo
 * @date 2021-04-12
 */
public class CStation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 站点名称 */
    @Excel(name = "站点名称")
    private String stationName;

    /** 站点地址 */
    @Excel(name = "站点地址")
    private String address;

    /** 区域id列表 */
    @Excel(name = "区域id列表")
    private String areaId;

    /** 区域id列表 */
    @Excel(name = "区域id列表")
    private String areaName;

    /** 公司id */
    @Excel(name = "公司id")
    private String companyId;

    /** 公司id */
    @Excel(name = "公司名称")
    private String companyName;

    /** 父级id集合 */
    @Excel(name = "父级id集合")
    private String ancestors;

    /** 负责人 */
    @Excel(name = "负责人")
    private String contactPerson;

    /** 负责人电话 */
    @Excel(name = "负责人电话")
    private String contactPhone;

    /** 帐号状态（0正常 1停用） */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private Integer state;

    /** 服务户数 */
    @Excel(name = "服务户数")
    private Long servicePeople;

    /** 处理能力 */
    @Excel(name = "处理能力")
    private Double processCapacity;

    /** 建厂时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "建厂时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buildDate;

    /** 站点类型（00系统用户） */
    @Excel(name = "站点类型", readConverterExp = "0=0系统用户")
    private Integer stationType;

    /** 经度 */
    @Excel(name = "经度")
    private String lng;

    /** 维度 */
    @Excel(name = "维度")
    private String lat;

    /** 采集频率 */
    @Excel(name = "采集频率")
    private String readCycle;

    /** 设备唯一标识 */
    @Excel(name = "设备唯一标识")
    private String snCode;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setStationName(String stationName)
    {
        this.stationName = stationName;
    }

    public String getStationName()
    {
        return stationName;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setAreaId(String areaId)
    {
        this.areaId = areaId;
    }

    public String getAreaId()
    {
        return areaId;
    }
    public void setCompanyId(String companyId)
    {
        this.companyId = companyId;
    }

    public String getCompanyId()
    {
        return companyId;
    }
    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    public String getAncestors()
    {
        return ancestors;
    }
    public void setContactPerson(String contactPerson)
    {
        this.contactPerson = contactPerson;
    }

    public String getContactPerson()
    {
        return contactPerson;
    }
    public void setContactPhone(String contactPhone)
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone()
    {
        return contactPhone;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }
    public void setServicePeople(Long servicePeople)
    {
        this.servicePeople = servicePeople;
    }

    public Long getServicePeople()
    {
        return servicePeople;
    }
    public void setProcessCapacity(Double processCapacity)
    {
        this.processCapacity = processCapacity;
    }

    public Double getProcessCapacity()
    {
        return processCapacity;
    }
    public void setBuildDate(Date buildDate)
    {
        this.buildDate = buildDate;
    }

    public Date getBuildDate()
    {
        return buildDate;
    }
    public void setStationType(Integer stationType)
    {
        this.stationType = stationType;
    }

    public Integer getStationType()
    {
        return stationType;
    }
    public void setLng(String lng)
    {
        this.lng = lng;
    }

    public String getLng()
    {
        return lng;
    }
    public void setLat(String lat)
    {
        this.lat = lat;
    }

    public String getLat()
    {
        return lat;
    }
    public void setReadCycle(String readCycle)
    {
        this.readCycle = readCycle;
    }

    public String getReadCycle()
    {
        return readCycle;
    }
    public void setSnCode(String snCode)
    {
        this.snCode = snCode;
    }

    public String getSnCode()
    {
        return snCode;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("stationName", getStationName())
            .append("address", getAddress())
            .append("areaId", getAreaId())
            .append("companyId", getCompanyId())
            .append("ancestors", getAncestors())
            .append("contactPerson", getContactPerson())
            .append("contactPhone", getContactPhone())
            .append("state", getState())
            .append("servicePeople", getServicePeople())
            .append("processCapacity", getProcessCapacity())
            .append("buildDate", getBuildDate())
            .append("stationType", getStationType())
            .append("lng", getLng())
            .append("lat", getLat())
            .append("readCycle", getReadCycle())
            .append("snCode", getSnCode())
            .append("createTime", getCreateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
